import { Component, Input } from '@angular/core';
import { FormDefaultComponent } from './FormDefault.component';

@Component({
    selector: 'app-form-input-date',
    templateUrl: './FormInputDate.component.html',
})
export class FormInputDateComponent extends FormDefaultComponent {
    @Input() useUnitValidate = false;
    @Input() unitError: any;
    @Input() bsMaxDate!: Date;
    dateFormat = 'YYYY/MM/DD';
    bsConfig = {
        dateInputFormat: this.dateFormat,
        containerClass: 'theme-default',
        showWeekNumbers: false,
    };
    bsMinDate = new Date(1900, 1, 1);

    constructor() {
        super();
    }
}
